Feed Notification Channel View Model
open class FeedNotificationChannelViewModel : BaseViewModel, OnPagedDataLoader<T> , LifecycleEventObserver
Content copied to clipboard
ViewModel preparing and managing data related with the notification channel. since 3.5.0
Constructors
Link copied to clipboard
open fun FeedNotificationChannelViewModel(@NonNull channelUrl: String, @Nullable messageListParams: MessageListParams)
Content copied to clipboard
Constructor
Functions
Link copied to clipboard
Tries to connect Sendbird Server and retrieve a channel instance.
Link copied to clipboard
Creates params for the message list when loading the message list.
Link copied to clipboard
Returns LiveData that can be observed for the list of messages.
Link copied to clipboard
Determine whether the data on the previous page exists.
Link copied to clipboard
Requests the list of
BaseMessage
s for the first time.Link copied to clipboard
Requests the list of
BaseMessage
s when the page goes to the next.Link copied to clipboard
Requests the list of
BaseMessage
s when the page goes to the previous.Link copied to clipboard
Link copied to clipboard
Returns LiveData that can be observed if the channel has been deleted.
Link copied to clipboard
Returns LiveData that can be observed if the channel has been updated.
Link copied to clipboard
open fun onStateChanged(@NonNull source: LifecycleOwner, @NonNull event: Lifecycle.Event)
Content copied to clipboard
Called when a state transition event happens.
Link copied to clipboard
Sends the log impression to Sendbird server.
Link copied to clipboard
Sends the log viewed to Sendbird server.
Properties
Link copied to clipboard